<?php /* Smarty version 2.6.25, created on 2012-05-10 23:06:22
         compiled from pages/1/templates/1.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'pages/1/templates/1.tpl', 42, false),)), $this); ?>
<!DOCTYPE html>
<html>
<head>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['Const']['Include_meta_head'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['Const']['Include_css'], 'smarty_include_vars' => array('css' => $this->_tpl_vars['Inf']['css_paths'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['Const']['Include_js'], 'smarty_include_vars' => array('js' => $this->_tpl_vars['Inf']['js_paths'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<title><?php echo $this->_tpl_vars['Data']['title']; ?>
</title>
</head>

<body>
<?php if ($this->_tpl_vars['Data']['flag']['entery'] != 1): ?>
	<form method=post>
		<b>Логин: </b>
		<br><input name="enteryForm[login]" value="" size=20><br>
		<b>Пароль: </b>
		<br><input name="enteryForm[password]" value="" size=20><br>
		<input type="submit" value="Войти">
	</form>
<?php elseif ($this->_tpl_vars['Data']['flag']['entery'] == 1): ?>
	<div>Вы в системе. Ваш id_gamers = <?php echo $this->_tpl_vars['Data']['id_gamers']; ?>
</div>	
	
	<?php if (isset ( $this->_tpl_vars['Data']['list_games'] )): ?>
		<div style="color: blue; width: 60px; float: left;">gamers</div>
		<div style="color: green; width: 100%">time</div>

		<?php $_from = $this->_tpl_vars['Data']['list_games']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<a href="">
					<div style="background: #fc0; width: 250px;">
						<div style="color: blue; width: 60px; float: left;"><?php echo $this->_tpl_vars['i']['gamers']; ?>
</div>
						<div style="color: green; width: 100%"><?php echo $this->_tpl_vars['i']['time']; ?>
</div>
					</div>
				</a>
		<?php endforeach; endif; unset($_from); ?>
	<?php endif; ?>
	<form method=post name = "addForm">
		<input type="submit" value="Создать еще игру">
	</form>
		
<?php endif; ?>

<?php if (isset ( $this->_tpl_vars['Data']['error'] ) && count($this->_tpl_vars['Data']['error']) > 0): ?>
	<ul>
	<?php $_from = $this->_tpl_vars['Data']['error']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
		<li><div style="color: red;"><?php echo $this->_tpl_vars['i']; ?>
</div></li>	
	<?php endforeach; endif; unset($_from); ?>
	</ul>
<?php endif; ?>
</body>
</html>

